function SuperType() {
  this.property = true
  console.log(arguments); // 伪数组
  for (let value of arguments) {
    console.log(value);
  }
}

SuperType.prototype.getSuperValue = function() {
  return this.property
}

function SubType() {
  this.subProperty = false
}
SubType.prototype = new SuperType('cuifan')
SubType.prototype.getSubValue = function() {
  return this.subProperty
}

let instance = new SubType()
console.log(instance.getSubValue());
console.log(instance.getSuperValue());